const db = require("./db.js");

const bannerSchema = new db.Schema({
    bannerId:{type:String},
    alt:{type:String},
    title:{type:String},
    src:{type:String},
    time:{type:Number}
})

// 根据元对象，创建集合
const banner = db.model("banner", bannerSchema);

// 将集合对象暴露出去，准备操作数据
module.exports = banner;
